# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiowinreg
_pkgname=aiowinreg
pkgver=0.0.12
pkgrel=3
pkgdesc='Windows registry reader.'
arch=('any')
url='https://pypi.org/project/aiowinreg/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
#source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
source=("https://github.com/skelsec/aiowinreg/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('98fe29865ca7936ee65596b1e5d1bc281b2699f1f11240f2a51439a364f6ddedba83513539ffc6931c36b2dff5dd07744f63af5d513be4d4dfbf9c6768ab89d6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

